package com.org.oracle.service;

import com.org.oracle.mongodb.entity.DeepSeekChatRecord;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import reactor.core.publisher.Flux;

import java.util.List;

public interface DeepSeekChatRepository extends ReactiveMongoRepository<DeepSeekChatRecord, String> {
    // 根据用户ID查询对话历史（按时间倒序）
    Flux<DeepSeekChatRecord> findByUserIdOrderByCreatedAtDesc(String userId);
}